home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / libtiff / Makefile.apollo < prev    next >
Makefile  |  1994-08-01  |  3KB  |  140 lines

  1. #    $Header: /usr/people/sam/fax/libtiff/RCS/Makefile.apollo,v 1.36 1994/03/02 02:58:30 sam Exp $
  2. #
  3. # Tag Image File Format Library
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. # the library will be installed in DESTDIR/lib and the included files in DESTDIR/include
  25. DESTDIR=/progs/bit2bit/tiff
  26. #
  27. AR=    /bin/ar
  28. RANLIB=    /usr/bin/ranlib
  29. INSTALL= /usr/bin/install
  30. NULL=
  31.  
  32. IPATH=    -I.
  33. CONF_LIBRARY=\
  34.     -DUSE_VARARGS=1 \
  35.     -DUSE_PROTOTYPES=0 \
  36.     -DUSE_CONST=0 \
  37.     ${NULL}
  38. COPTS=    -O
  39. CFLAGS=    ${COPTS} -A nansi ${IPATH} ${CONF_LIBRARY}
  40. #
  41. INCS=    tiff.h tiffio.h
  42. SRCS=    tif_fax3.c \
  43.     tif_fax4.c \
  44.     tif_aux.c \
  45.     tif_ccittrle.c \
  46.     tif_close.c \
  47.     tif_compress.c \
  48.     tif_dir.c \
  49.     tif_dirinfo.c \
  50.     tif_dirread.c \
  51.     tif_dirwrite.c \
  52.     tif_dumpmode.c \
  53.     tif_error.c \
  54.     tif_flush.c \
  55.     tif_getimage.c \
  56.     tif_jpeg.c \
  57.     tif_lzw.c \
  58.     tif_next.c \
  59.     tif_open.c \
  60.     tif_packbits.c \
  61.     tif_print.c \
  62.     tif_read.c \
  63.     tif_swab.c \
  64.     tif_strip.c \
  65.     tif_thunder.c \
  66.     tif_unix.c \
  67.     tif_tile.c \
  68.     tif_version.c \
  69.     tif_warning.c \
  70.     tif_write.c \
  71.     ${NULL}
  72. OBJS=    tif_fax3.o \
  73.     tif_fax4.o \
  74.     tif_aux.o \
  75.     tif_ccittrle.o \
  76.     tif_close.o \
  77.     tif_compress.o \
  78.     tif_dir.o \
  79.     tif_dirinfo.o \
  80.     tif_dirread.o \
  81.     tif_dirwrite.o \
  82.     tif_dumpmode.o \
  83.     tif_error.o \
  84.     tif_flush.o \
  85.     tif_getimage.o \
  86.     tif_jpeg.o \
  87.     tif_lzw.o \
  88.     tif_next.o \
  89.     tif_open.o \
  90.     tif_packbits.o \
  91.     tif_print.o \
  92.     tif_read.o \
  93.     tif_swab.o \
  94.     tif_strip.o \
  95.     tif_thunder.o \
  96.     tif_tile.o \
  97.     tif_unix.o \
  98.     tif_version.o \
  99.     tif_warning.o \
  100.     tif_write.o \
  101.     ${NULL}
  102. ALL=    libtiff.a
  103.  
  104. all:     ${ALL}
  105.  
  106. ${ALL}:    ${OBJS}
  107.     ${AR} rc libtiff.a $?
  108.     ${RANLIB} libtiff.a
  109.  
  110. ${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
  111. tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
  112.  
  113. g3states.h: mkg3states.c t4.h
  114.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c
  115.     ./mkg3states > g3states.h
  116.  
  117. install: all installh
  118.     @-mkdir $(DESTDIR)/lib
  119.     -for i in ${ALL}; do \
  120.         ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
  121.         ${RANLIB} ${DESTDIR}/lib/$$i; \
  122.     done
  123.  
  124. installh: ${INCS}
  125.     @-mkdir $(DESTDIR)/include
  126.     -for i in ${INCS}; do \
  127.         h=`basename $$i`; \
  128.         cmp -s $$i ${DESTDIR}/include/$$h || \
  129.             ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
  130.     done
  131.  
  132. clean clobber:
  133.     rm -f ${ALL} ${OBJS} core a.out mkg3states g3states.h
  134.  
  135. tags:    ${SRCS}
  136.     ${CTAGS} ${SRCS}
  137.